/*
 * Copyright (c) 2012 Sqpoll.
 * All rights reserved.
 */
package com.yglab.sqpoll.model;

import java.io.Serializable;
import java.util.Date;

/**
 * This class is a model for the child items of survey question.
 * 
 * @author Younggue Bae
 */
@SuppressWarnings("serial")
public class QuestionItem implements Serializable {

	private int surveyId;
	private int questionId;
	private int questionItemId;
	private int sequence;
	private String question;
	private String options;
	private String createUserId;
	private String updateUserId;
	private Date createDate;
	private Date updateDate;
	
	public int getSurveyId() {
		return surveyId;
	}
	public void setSurveyId(int surveyId) {
		this.surveyId = surveyId;
	}
	public int getQuestionId() {
		return questionId;
	}
	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}
	public int getQuestionItemId() {
		return questionItemId;
	}
	public void setQuestionItemId(int questionItemId) {
		this.questionItemId = questionItemId;
	}
	public int getSequence() {
		return sequence;
	}
	public void setSequence(int sequence) {
		this.sequence = sequence;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getOptions() {
		return options;
	}
	public void setOptions(String options) {
		this.options = options;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	
	@Override
	public String toString() {
		return "QuestionItem [surveyId=" + surveyId + ", questionId=" + questionId + ", questionItemId=" + questionItemId
				+ ", sequence=" + sequence + ", question=" + question + ", options=" + options + ", createUserId="
				+ createUserId + ", updateUserId=" + updateUserId + ", createDate=" + createDate + ", updateDate=" + updateDate
				+ "]";
	}

}
